package com.snail.mapper;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.snail.model.pojo.user.SysUser;
import com.snail.model.vo.user.ThirdPartyUserInfoVO;
import org.apache.ibatis.annotations.Select;
@DS("learn-system")
public interface SysUserMapper extends BaseMapper<SysUser> {
    /**
     * 根据用户ID查询用户名
     * @param userId 用户ID
     * @return 用户名
     */
    @Select("SELECT nickname ,file_path FROM sys_user WHERE user_id = #{userId} AND deleted = 0")
    SysUser selectUsernameById(Long userId);
}
